package com.atguigu.eduservice.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author alan
 * 前台系统查询条件
 */
@Data
public class CourseQuery {

    @ApiModelProperty("查询关键字")
    private String keyWord;

    @ApiModelProperty("课程分类ID")
    private String subjectId;

    @ApiModelProperty("课程分类PID")
    private String subjectPId;

    @ApiModelProperty("排序字段")
    private String order = "other";

    @ApiModelProperty("是否为升序")
    private boolean orderByAsc = true;

    @ApiModelProperty("页面大小")
    private int pageSize = 8;

    @ApiModelProperty("当前页")
    private int pageNum = 1;

    public boolean getOrderByAsc() {
        return this.orderByAsc;
    }
}
